<template>
  <el-dialog title="查看"
             v-model="visible"
             @close="close"
             width="1200px"
             :close-on-click-modal="false">
    <in-sheet-list :query="info"/>
    <template #footer>
      <el-button @click="close">取消</el-button>
    </template>
  </el-dialog>
</template>

<script lang="ts">
import InSheetList from "@/components/stock/InSheetList.vue";

export default {
  name: "listWithInSheetDetail",
  components: {InSheetList},
  props: {
    info: {},
    close: {
      required: true,
      type: Function,
    },
    refresh: {
      required: true,
      type: Function,
    }
  },
  data() {
    return {
      visible: false,
    };
  },
  watch: {
    info: {
      handler: function (newVal) {
        this.visible = newVal
      },
    },
  },

}
</script>
<style lang="scss" scoped>
</style>